/*    */ package com.zimbra.cs.account.ldap.upgrade;
/*    */ 
/*    */ import com.zimbra.cs.account.Entry.EntryType;
/*    */ import com.zimbra.cs.account.FileGenUtil;
/*    */ import java.util.Arrays;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class Description
/*    */ {
/*    */   private UpgradeOp op;
/*    */   private String[] attrs;
/*    */   private Entry.EntryType[] entryTypes;
/*    */   private String oldValue;
/*    */   private String newValue;
/*    */   private String notes;
/*    */   
/*    */   Description(UpgradeOp op, String[] attrs, Entry.EntryType[] entryTypes, String oldValue, String newValue, String notes)
/*    */   {
/* 35 */     this.op = op;
/* 36 */     this.attrs = attrs;
/* 37 */     this.entryTypes = entryTypes;
/* 38 */     this.oldValue = oldValue;
/* 39 */     this.newValue = newValue;
/* 40 */     this.notes = notes;
/*    */   }
/*    */   
/*    */   void describe() {
/* 44 */     LdapUpgradePrinter printer = this.op.printer;
/*    */     
/* 46 */     printer.format("Bug %s\n", new Object[] { this.op.getBug() });
/*    */     
/* 48 */     if (this.attrs != null) {
/* 49 */       printer.format("Attrs: %s\n", new Object[] { Arrays.deepToString(this.attrs) });
/*    */     }
/*    */     
/* 52 */     if (this.entryTypes != null) {
/* 53 */       printer.format("Entry types: %s\n", new Object[] { Arrays.deepToString(this.entryTypes) });
/*    */     }
/*    */     
/* 56 */     printer.format("From value: %s\n", new Object[] { this.oldValue == null ? "" : this.oldValue });
/* 57 */     printer.format("To value: %s\n", new Object[] { this.newValue == null ? "" : this.newValue });
/*    */     
/* 59 */     if (this.notes != null)
/*    */     {
/* 61 */       String formattedNotes = FileGenUtil.wrapComments(this.notes == null ? "" : this.notes, 70, "    ");
/* 62 */       printer.format("Notes:\n%s\n", new Object[] { formattedNotes });
/*    */     }
/*    */     
/* 65 */     printer.println();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/ldap/upgrade/Description.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */